<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="doantotnghiep.model.Customer"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thêm tủ hàng</title>
</head>
<body>
<div align="center">
<h1 style="color: blue;">THÊM TỦ HÀNG</h1>
 <form:form method="POST" commandName="CabinetDTO" >
		<table border="1" >

			<tr>
				<td><form:label path="cabinetName">Tên tủ:</form:label></td>
				<td><form:input id="cabinetName" path="cabinetName" value="${cabinetName}"></form:input></td>
				<td><span id="cabinetname-error" style="color:red"> </span></td>
			</tr>
			<tr>
				<td><form:label path="status">Tình trạng tủ:</form:label></td>
				<td><form:select path="status" value="${status}">
				 	<option value="0"><%="Chưa đầy"%></option>				 
				 	<option value="1"><%="Đầy"%></option>
				</form:select></td>
			</tr>
			<tr>
				<td><form:label path="numberOfBatch">Số lượng hiện tại:</form:label></td>
				<td><form:input id="numberOfBatch" path="numberOfBatch" value="${numberOfBatch}"></form:input></td>
				<td><span id="numberbatch-error" style="color:red"> </span></td>
			</tr>
			<tr>
				<td ><input id= "addcabinetsubmit" type="button" value="Thêm" /></td>
				<td ><input id="addcabinetcancel" type="button" value="Hủy" /></td>
			</tr>
			
		 </table>
	     </form:form>
</div>
</body>
</html>